﻿<%@ Page Language="C#" MasterPageFile="~/PlainMasterPage.master" AutoEventWireup="true"
    CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Work Organizer - Change password</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="text-align: center; border-width: thick; border-color: Black">
        <table>
        <tr>
            <td style="width:30%"></td>
            <td style="width:40%;">
            <table border="0" style="font-family:Verdana;font-size:100%;text-align:center;width:400px;height:150px;">
            <tr>
                        <td align="center" colspan="2" 
                            style="color:White;background-color:#507CD1;font-weight:bold;">
                            Change your password</td>
                    </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LoginNameLabel" runat="server" AssociatedControlID="LoginName">Login 
                            Name:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="LoginName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="LoginNameRequired" runat="server" ControlToValidate="LoginName"
                        ErrorMessage="Login Name is required." ToolTip="Login Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">New Password:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                        ErrorMessage="New Password is required." ToolTip="New Password is required."
                        ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="color: Red;">
                    <asp:Label ID="lblStatus" runat="server" EnableViewState="False" ForeColor="#00CC00"></asp:Label>
                    <a href="Home.aspx" runat="server" id="lnkBtnLogin" visible="false">Home</a>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="color: Red;">
                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="color: Red;">
                    <asp:Button ID="btnChangePassword" runat="server" Text="Change password" ValidationGroup="CreateUserWizard1"
                        OnClick="btnChangePassword_Click" />
                </td>
            </tr>
            </table>
            </td>
            <td style="width:40%;"></td>
            </tr>
        </table>
    </div>
</asp:Content>
